package com.example.boot.thread.demo.threaddemo.redis;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

import redis.clients.jedis.Jedis;

public class MainController {



    public static void main(String[] args) {

        String key="shouji";
        int num=100;

        Jedis jedis = new Jedis("localhost");
        jedis.set(key, num+"");
        jedis.close();
        //创建一个线程池
//        ExecutorService threadPool = Executors.newFixedThreadPool(20);
//        for (int i =0; i < 10; i++) {
//			new Run("user"+i,key,num);
//            threadPool.execute(new Test());
//        }
//        threadPool.shutdown();
    }
}
